// @Date         2021-11-10
// @Author       Aaron Zhang
// @Description   
// @FileName      service.go   

package kernel

import (
	"zin/framework/gin"
	"net/http"
)

type ProviderServiceKernel struct {
	engine *gin.Engine
}

func NewProviderServiceKernel(param map[string]interface{}) (interface{}, error) {
	return &ProviderServiceKernel{
		engine: param["engine"].(*gin.Engine),
	}, nil
}

func (p *ProviderServiceKernel) HttpEngine() http.Handler {
	return p.engine
}
